'use strict';
/*已解决面板*/

var React = require('react');
var Router = require('react-router'); 
var Link = Router.Link;


var DialogueTopComponent = React.createClass({
  getInitialState:function(){
  	return {el:null};
  },
  componentWillMount:function(){
  	if (this.props.panelType==1) 
  		this.setState({el:<input type="button" className="do-btn do-btn-default do-pho-btn" value="拒答" />});	
  },
  render: function() {
  	var cx = React.addons.classSet;
	var classes = cx({
		'do-user-cart': true,
		'do-user-cart-fixed': this.props.panelType?true:false
	});
    return (
	/* jshint ignore:start */
		<div className={classes}>
			<ul className="do-chatlist">
				 <li className="do-chatlist-item">
	                                          <ul className="do-pho-img">
	                                                 <li >
	                                                      <img src="/images/test-user-icon.jpg" alt="用户头像" className="pho-img" />
	                                                      <span className="do-pho-vip">包月</span>
	                                                      {this.state.el}
	                                                </li>
	                                          </ul>     
	                                          <div className="do-user-info">
	                                          	{/*<Link to="/my/MyTabTwo"  className="do-icon-return"><i ></i>返回</Link>*/}
	                                                <ul className="do-user-name">
	                                                      <li >张三三</li>
	                                                      <li><a href="javascript:;">(设置备注)</a></li>
	                                                </ul>
	                                                <ul className="do-user-detail">
	                                                      <li >29岁 </li>
	                                                      <li>辣妈 </li>
	                                                      <li>姓名：赵鑫 </li>
	                                                      <li> 预产期：2014-11-11</li>
	                                                      <li> 怀胎次数：7 </li>
	                                                      <li>生产次数：7  </li>
	                                                      <li>个人病史：神经病 </li>
	                                                      <li>家族遗传病：神经病</li>
	                                                </ul>
	                                                <ul className="do-user-record">
	                                                	<li>每日记录:</li>
	                                                	<li>胎动</li>
	                                                	<li>体重</li>
	                                                	<li>肚围</li>
	                                                	<li>症状</li>
	                                                	<li>体温</li>
	                                                	<li>睡眠</li>
	                                                	<li>检验单</li>
	                                                </ul>
	                                                      
	                                          </div>
	                                    </li>
			</ul>
		</div>
	/* jshint ignore:end */
    );
  }
});

module.exports =DialogueTopComponent;
